String Manipulation

This is the DTF Transformer and it can be used to apply string functions to the properties to apply certain types of encoding to the property values.

length
This function will calculate the length of the properties value.

sub-string(a,b)
This function can extract a sub string from an existing property value.

index-of(str)
This function will find the index of an existing string within the property's value.

Usage Examples
Example #1
<sequence>
   
<property name="string1" value="Hello World!" />
   
<log>Length of [${string1}] is ${string1:string:length}</log>
</sequence>
Example #2
<sequence>
   
<property name="string2" value="rodney lopes gomes" />
   
<log>middle name is "${string2:string:sub-string(7,12)}"</log>
</sequence>
Example #3
<sequence>
   
<property name="string1" value="Hello World!" />
   
<log>index of 'W' in "${string1}" is ${string1:string:index-of(W)}</log>
</sequence>